//-----------------------------------------------------------------------
// <copyright file="PresentService.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------	

using System;
using System.Collections;
using Pyco;
using Pyco.Diagnostics;
using Pyco.Data;
using BirthdayReminder.Entities;
using BirthdayReminder.Data;
    
namespace BirthdayReminder.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class PresentService : PresentServiceBase
    {
        public static TotalNumberPresentCollection GetTotalNumberPresent(string receiverIDList)
        {
            try
            {
                PresentDAO presentDAO = new PresentDAO();
                return presentDAO.GetTotalNumberPresentList(receiverIDList);
            }
            catch (BusinessException)
            {
                throw;
            }
            catch (Exception ex)
            {
                // log this exception
                Logger.Error(ex);
                throw new BusinessException(ex.Message);
            }
        }        
    }

        
}